const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema = new mongoose.Schema({
    cateId: mongoose.Schema.ObjectId,
    userId: mongoose.Schema.ObjectId,
    title: String,
    content: String,
    creareDate: String,
    pulishDate: String,
    isPublish: Boolean,
    isTop: Boolean,
    isHot: Boolean
});
schema.plugin(mongoosePaginate);
module.exports = mongoose.model('proComment', schema, 'procomment');